











<div class="x-body">
    <form class="layui-form form_single" action="{:url()}" method="post">
        <div class="layui-form-item">
            <label  class="layui-form-label">
                公告标题
            </label>
            <div class="layui-input-block">
                <input type="text" onchange="this.value=this.value.substring(0, 30)" onkeydown="this.value=this.value.substring(0, 30)" onkeyup="this.value=this.value.substring(0, 30)"  name="title" value="{$info['title']|default=''}"
                       autocomplete="off" class="layui-input" />
            </div>
            <div style="color: red !important;" class="layui-form-mid layui-word-aux">
                （限制30字符）
            </div>

        </div>
        <div class="layui-form-item">
            <label  class="layui-form-label">
                <span class="x-red">*</span>公告分类
            </label>
            <div class="layui-input-block">
                <select name="cate_id" >
                    {volist name='cate' id='vo'}
                    <option value="{$vo['id']}" {notempty name="$info['cate_id']"}{if condition="$info['cate_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
            </div>
            <div class="layui-form-mid layui-word-aux">
                (公告分类)
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red">*</span>更新内容
            </label>
            <div class="layui-input-block">
                <textarea class="form-control textarea_editor" name="content" placeholder="请输入更新内容">{$info['content']|default=''}</textarea>
                {:widget('editor/index', array('name'=> 'content','value'=> ''))}
            </div>
        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                是否推送
            </label>
            <div class="layui-input-inline">
                <input type="checkbox" name="is_push" value="1" lay-skin="switch"  {notempty name='info'}{eq name="info.is_push" value='1'} checked='checked' {/eq}{/notempty}  lay-text="是|否">
            </div>
        </div>
        <div class="box-footer">

            <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
            {include file="layout/edit_btn_group"/}

        </div>

    </form>
</div>



<script type="text/javascript">

    ob.setValue("is_hide", {$info.is_hide|default=0});
    ob.setValue("is_shortcut", {$info.is_shortcut|default=0});
    ob.setValue("pid", {$info.pid|default=0});

</script>

